package com.weng.bigdata.micro.service.message.center.fallback;

import com.weng.bigdata.micro.service.common.Constants;
import com.weng.bigdata.micro.service.message.center.feign.MessageFeignService;
import com.weng.bigdata.micro.service.message.center.model.MailMessageDto;
import com.weng.bigdata.micro.service.message.center.model.MqMessageDto;
import com.weng.bigdata.micro.service.message.center.model.SmsMessageDto;
import com.weng.framework.core.model.ResponseData;
import org.springframework.stereotype.Component;

/**
 * @author wengzhonghui
 * @date 2021/4/2 11:15
 */
@Component
public class MessageFallBack implements MessageFeignService {

	@Override
	public ResponseData sendMqMessage(MqMessageDto message) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData sendSmsMessage(SmsMessageDto message) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}

	@Override
	public ResponseData sendMailMessage(MailMessageDto message) {
		return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
	}
}
